package com.ruoyi.system.client.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.client.mapper.ServiceClientInfoMapper;
import com.ruoyi.system.client.domain.ServiceClientInfo;
import com.ruoyi.system.client.service.IServiceClientInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 客户信息Service业务层处理
 * 
 *@author Administrator
 * @date 2021-03-06
 */
@Service
public class ServiceClientInfoServiceImpl implements IServiceClientInfoService 
{
    @Autowired
    private ServiceClientInfoMapper serviceClientInfoMapper;

    /**
     * 查询客户信息
     * 
     * @param id 客户信息ID
     * @return 客户信息
     */
    @Override
    public ServiceClientInfo selectServiceClientInfoById(Long id)
    {
        return serviceClientInfoMapper.selectServiceClientInfoById(id);
    }

    /**
     * 查询客户信息列表
     * 
     * @param serviceClientInfo 客户信息
     * @return 客户信息
     */
    @Override
    public List<ServiceClientInfo> selectServiceClientInfoList(ServiceClientInfo serviceClientInfo)
    {
        return serviceClientInfoMapper.selectServiceClientInfoList(serviceClientInfo);
    }

    /**
     * 新增客户信息
     * 
     * @param serviceClientInfo 客户信息
     * @return 结果
     */
    @Override
    public int insertServiceClientInfo(ServiceClientInfo serviceClientInfo)
    {
        return serviceClientInfoMapper.insertServiceClientInfo(serviceClientInfo);
    }

    /**
     * 修改客户信息
     * 
     * @param serviceClientInfo 客户信息
     * @return 结果
     */
    @Override
    public int updateServiceClientInfo(ServiceClientInfo serviceClientInfo)
    {
        return serviceClientInfoMapper.updateServiceClientInfo(serviceClientInfo);
    }

    /**
     * 删除客户信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteServiceClientInfoByIds(String ids)
    {
        return serviceClientInfoMapper.deleteServiceClientInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除客户信息信息
     * 
     * @param id 客户信息ID
     * @return 结果
     */
    @Override
    public int deleteServiceClientInfoById(Long id)
    {
        return serviceClientInfoMapper.deleteServiceClientInfoById(id);
    }
}
